import App from './App.vue'
import { createApp } from 'vue'

// import '@/assets/css/global.css'
// 这里会和清除默认样式冲突
import '@/assets/css/daisyui.css'

import router from '@/router'
import pinia from '@/utils/pinia'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import useElementPlusIconsVue from './utils/use-element-icon'

import Request from '@/utils/Request.js'

const app = createApp(App)

app.use(router)
app.use(pinia)
app.use(ElementPlus, {
  message: {
    duration: 1000
  }
})
useElementPlusIconsVue(app)

app.config.globalProperties.Request = Request

app.mount('#app')
